<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
</head>
<body>
    <div>
        <form name="a">
            <select name="a" size="1" onchange="_sel(this)">
            <option value="a">1</option>
            <option value="b">2</option>
            <option value="c">3</option>
            </select>
        </form>
    </div>
    <script>
        //实现sel函数显示当前选项的文本和值
        function _sel(){
            $("div div").remove()
            var val = $(":selected").val()
            var text =  $(":selected").text()
            var div1 = document.createElement("div");
            var div = document.querySelector("div");
            div.appendChild(div1);
            $("div div").append("当前选项的文本= " + text + " 值= " + val )
           
           
        }
    </script>
</body>
</html>